function addAttachments(attachment) {
  let html = '';
  attachment.forEach(function ({ name, generatedPath }) {
    html +=
      `<a href="${generatedPath}" class="passage-attachment-item" download="${name}">${name}</a>`;
  })
  document.getElementById('passage-attachment-container').innerHTML = html;
}